package com.itheima.bos.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import com.itheima.bos.service.PromotionService;

public class PromotionJob implements Job{
	
	@Autowired
	private PromotionService promotionService;

	@Override
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		promotionService.updateStatus();
	}

}
